package com.taotao.product.controller;

import com.taotao.common.core.domain.Result;
import com.taotao.product.service.PmsSpuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: PmsSpuInfoController
 * @author: ZhangYuQi
 * @date: 2024/12/19 上午10:58
 * @Version: 1.0
 * @description:
 */

@RestController
@RequestMapping("/spuInfo")
public class PmsSpuInfoController {

    @Autowired
    private PmsSpuInfoService spuInfoService;


    /**
    * @Author ZhangYuQi
    * @Description 商品上架
    * @Date 上午11:03 2024/12/19
    * @Param [spuId]
    * @return
    */
    @GetMapping("/up/{spuId}")
    private Result up(@PathVariable Integer spuId){
        spuInfoService.up(spuId);
        return Result.success();
    }







}
